package com.hadoop.rpc;


import org.apache.hadoop.ipc.RPC;
import org.apache.hadoop.conf.Configuration;

import java.net.InetSocketAddress;

public class ClientApplication {

    public static void main(String[] args) throws Exception {

        MyInterface localhost =
                RPC.getProxy(MyInterface.class, MyInterface.versionID,
                        new InetSocketAddress("localhost", 8877), new Configuration());
        System.out.println(localhost.findName(123456));
    }
}